package com.cloudpivot.receivales.contract.repository.bpm;

import com.cloudpivot.receivales.contract.entity.bpmcontract.BpmContractAppendV3Entity;
import com.cloudpivot.receivales.contract.entity.bpmcontract.BpmContractReplaceV3Entity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BpmContractReplaceRepository extends JpaRepository<BpmContractAppendV3Entity,String> {

    /**
     * 获取bpm的合同替换对象
     * @param id
     * @return
     */
    @Query("select izch0_newcontractreplace from BpmContractReplaceV3Entity izch0_newcontractreplace where izch0_newcontractreplace.id = :id")
    BpmContractReplaceV3Entity getBpmContractReplaceObject(@Param(value = "id") String id);


}
